export interface GetRoleListApiParams {
  page: number;
  limit: number;
  roleName: string;
}

export interface UpdateRoleApiParams {
  roleName: string;
  id: string;
}
export interface GetRolePermissionItem {
  id: string;
  gmtCreate: string;
  gmtModified: string;
  deleted: false;
  pid: string;
  name: string;
  code: string;
  toCode: string;
  type: number;
  status: null;
  level: number;
  children: GetRolePermissionList;
  select: boolean;
}

export type GetRolePermissionList = GetRolePermissionItem[];

export interface GetRolePermissionApiResponse {
  children: GetRolePermissionList;
}
